package com.zy.pojo;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2021/5/31
 * Time: 下午 16:21
 * Description: 部门表
 */
public class Department {

    private Integer id;
    private String departmentName;
    private Date createTime;
    private Double maxSalary;
    private Double minSalary;
    private Double avgSalary;
    private Integer count;

    public Department() {
    }

    public Department(Integer id, String departmentName, Date createTime) {
        this.id = id;
        this.departmentName = departmentName;
        this.createTime = createTime;
    }

    public Department(Integer id, String departmentName, Date createTime, Double maxSalary, Double minSalary, Double avgSalary) {
        this.id = id;
        this.departmentName = departmentName;
        this.createTime = createTime;
        this.maxSalary = maxSalary;
        this.minSalary = minSalary;
        this.avgSalary = avgSalary;
    }

    public Department(Integer id, String departmentName, Date createTime, Double maxSalary, Double minSalary, Double avgSalary, Integer count) {
        this.id = id;
        this.departmentName = departmentName;
        this.createTime = createTime;
        this.maxSalary = maxSalary;
        this.minSalary = minSalary;
        this.avgSalary = avgSalary;
        this.count = count;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Double getMaxSalary() {
        return maxSalary;
    }

    public void setMaxSalary(Double maxSalary) {
        this.maxSalary = maxSalary;
    }

    public Double getMinSalary() {
        return minSalary;
    }

    public void setMinSalary(Double minSalary) {
        this.minSalary = minSalary;
    }

    public Double getAvgSalary() {
        return avgSalary;
    }

    public void setAvgSalary(Double avgSalary) {
        this.avgSalary = avgSalary;
    }

    @Override
    public String toString() {
        return "Department{" +
                "id=" + id +
                ", departmentName='" + departmentName + '\'' +
                ", createTime=" + createTime +
                ", maxSalary=" + maxSalary +
                ", minSalary=" + minSalary +
                ", avgSalary=" + avgSalary +
                ", count=" + count +
                '}';
    }
}